import React from 'react'

// export default function Demo() {
//   return <div>Demo</div>
// }

export default React.forwardRef(function Demo(props, refObj) {
  //   console.log(props, refObj)
  //   refObj此时就是appRef对象
  return (
    <div>
      Demo
      <input type="text" ref={refObj} />
    </div>
  )
})
